// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// 使用vue-material  ui 插件
import VueMaterial from 'vue-material'
import 'vue-material/dist/vue-material.css'
import './assets/icon.css'

Vue.use(VueMaterial)

// console.log(Vue.material)

Vue.material.registerTheme({
  'default': {
    primary: {
      color: 'light-green',
      hue: 700
    },
    accent: 'amber',
    warn: 'red',
    background: 'white'
  },
  'indigo': {
    primary: 'indigo',
    accent: 'pink',
    warn: 'red',
    background: 'white'
  },
  'teal': {
    primary: 'purple',
    accent: 'cyan',
    warn: 'red',
    background: 'white'
  },
  'blue': {
    primary: 'blue',
    accent: 'deep-orange',
    warn: 'red',
    background: 'white'
  }
})

Vue.material.setCurrentTheme('default')

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App },
  data: {
    eventHub: new Vue()
  }
})
